﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PlanProd.Contracts
{
    [Serializable]
    [DataContract]
    public class PedidoComercial : IAuditable, ILogicalRemoved
    {
        public PedidoComercial()
        {
            this.Detalle = new List<PedidoComercialDetalle>();
        }

        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public int TemporadaId { get; set; }

        [DataMember]
        public string TemporadaNombre { get; set; }

        [DataMember]
        public int DestinoId { get; set; }

        [DataMember]
        public string DestinoNombre { get; set; }

        [DataMember]
        public string Nombre { get; set; }
        
        [DataMember]
        public int EmpresaId { get; set; }

        [DataMember]
        public int? CantidadPrendas { get; set; }

        [DataMember]
        public List<PedidoComercialDetalle> Detalle { get; set; }

        [DataMember]
        public DateTime AuditFechaCreacion { get; set; }

        [DataMember]
        public string AuditUserNameCreacion { get; set; }

        [DataMember]
        public DateTime? AuditFechaModificacion { get; set; }

        [DataMember]
        public string AuditUserNameModificacion { get; set; }

        [DataMember]
        public bool Removed { get; set; }
    }
}
